# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1313697022.373409
_template_filename='/home/bastian/workspaces/c-chrysalide/trunk/portal/portal/templates/dashboard/news/modif_news_id.mako'
_template_uri='/dashboard/news/modif_news_id.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['title']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/dashboard/site.mako', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n')
        # SOURCE LINE 2
        __M_writer(u'\n<div style="padding: 20px;">\n\t<div>')
        # SOURCE LINE 4
        __M_writer(c.message )
        __M_writer(u'</div>\n\t<p>Modifier la news</p>\n\t<form method="post" action="/dashboard/modif_news_submit" style="width: 710px">\n\t\tTitre : <input type="text" name="title" size="50" value="')
        # SOURCE LINE 7
        __M_writer(escape(c.news.title))
        __M_writer(u'" /><br /><br />\n\t\t<textarea name="content" id="news_content">')
        # SOURCE LINE 8
        __M_writer(escape(c.news.content))
        __M_writer(u'</textarea>\n\t\t<input type="hidden" name="id" value="')
        # SOURCE LINE 9
        __M_writer(escape(c.news.id))
        __M_writer(u'" />\n\t\t<input type="submit" value="Envoyer" /> - <a href="/dashboard/modif_news">Annuler</a>\n\t</form>\n</div>\n\n<script type="text/javascript">\n$(document).ready(function() {\n\tCKEDITOR.replace( \'news_content\' );\n\n\tCKEDITOR.config.height = \'400px\';\n\tCKEDITOR.config.language = \'fr\';\n\tCKEDITOR.config.contentsCss = \'/ckeditor/mysitestylesfornews.css\';\n\tCKEDITOR.config.uiColor = \'grey\';\n\n\twindow.onbeforeunload = function (e) {\n\t\t  e = e || window.event;\n\n\t\t  // For IE and Firefox prior to version 4\n\t\t  if (e) {\n\t\t    e.returnValue = \'Any string\';\n\t\t  }\n\n\t\t  // For Safari\n\t\t  return \'Any string\';\n\t\t};\n});\n</script>')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_title(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'Dashboard')
        return ''
    finally:
        context.caller_stack._pop_frame()


